.class public Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;
.super Ljava/util/AbstractQueue;
.source "LegacyLinkedTransferQueue.java"

# interfaces
.implements Ljava/util/concurrent/BlockingQueue;
.implements Ljava/io/Serializable;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Itr;,
        Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    }
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "<E:",
        "Ljava/lang/Object;",
        ">",
        "Ljava/util/AbstractQueue",
        "<TE;>;",
        "Ljava/util/concurrent/BlockingQueue",
        "<TE;>;",
        "Ljava/io/Serializable;"
    }
.end annotation


# static fields
.field private static final ASYNC:I = 0x1

.field private static final CHAINED_SPINS:I = 0x40

.field private static final FRONT_SPINS:I = 0x80

#the value of this static final field might be set in the static constructor
.field private static final MP:Z = false

.field private static final NOW:I = 0x0

.field static final SWEEP_THRESHOLD:I = 0x20

.field private static final SYNC:I = 0x2

.field private static final TIMED:I = 0x3

.field private static final headUpdater:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater; = null
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater",
            "<",
            "Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;",
            "Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;",
            ">;"
        }
    .end annotation
.end field

.field private static final serialVersionUID:J = -0x2cbacc91e0a3c166L

.field private static final sweepVotesUpdater:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater",
            "<",
            "Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;",
            ">;"
        }
    .end annotation
.end field

.field private static final tailUpdater:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater",
            "<",
            "Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;",
            "Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;",
            ">;"
        }
    .end annotation
.end field


# instance fields
.field volatile transient head:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

.field volatile transient sweepVotes:I

.field volatile transient tail:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;


# direct methods
.method static constructor <clinit>()V
    .locals 3

    .prologue
    const/4 v0, 0x1

    .line 396
    invoke-static {}, Ljava/lang/Runtime;->getRuntime()Ljava/lang/Runtime;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Runtime;->availableProcessors()I

    move-result v1

    if-le v1, v0, :cond_0

    :goto_0
    sput-boolean v0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->MP:Z

    .line 1342
    const-class v0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;

    const-class v1, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    const-string v2, "head"

    invoke-static {v0, v1, v2}, Lorg/jboss/netty/util/internal/AtomicFieldUpdaterUtil;->newRefUpdater(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

    move-result-object v0

    sput-object v0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->headUpdater:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

    .line 1345
    const-class v0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;

    const-class v1, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    const-string v2, "tail"

    invoke-static {v0, v1, v2}, Lorg/jboss/netty/util/internal/AtomicFieldUpdaterUtil;->newRefUpdater(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

    move-result-object v0

    sput-object v0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->tailUpdater:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

    .line 1348
    const-class v0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;

    const-string v1, "sweepVotes"

    invoke-static {v0, v1}, Lorg/jboss/netty/util/internal/AtomicFieldUpdaterUtil;->newIntUpdater(Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;

    move-result-object v0

    sput-object v0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->sweepVotesUpdater:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;

    return-void

    .line 396
    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public constructor <init>()V
    .locals 0

    .prologue
    .line 1030
    .local p0, this:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;,"Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue<TE;>;"
    invoke-direct {p0}, Ljava/util/AbstractQueue;-><init>()V

    .line 1031
    return-void
.end method

.method public constructor <init>(Ljava/util/Collection;)V
    .locals 0
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Collection",
            "<+TE;>;)V"
        }
    .end annotation

    .prologue
    .line 1043
    .local p0, this:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;,"Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue<TE;>;"
    .local p1, c:Ljava/util/Collection;,"Ljava/util/Collection<+TE;>;"
    invoke-direct {p0}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;-><init>()V

    .line 1044
    invoke-virtual {p0, p1}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->addAll(Ljava/util/Collection;)Z

    .line 1045
    return-void
.end method

.method private awaitMatch(Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;Ljava/lang/Object;ZJ)Ljava/lang/Object;
    .locals 10
    .parameter "s"
    .parameter "pred"
    .parameter
    .parameter "timed"
    .parameter "nanos"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;",
            "Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;",
            "TE;ZJ)TE;"
        }
    .end annotation

    .prologue
    .line 730
    .local p0, this:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;,"Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue<TE;>;"
    .local p3, e:Ljava/lang/Object;,"TE;"
    if-eqz p4, :cond_1

    invoke-static {}, Ljava/lang/System;->nanoTime()J

    move-result-wide v1

    .line 731
    .local v1, lastTime:J
    :goto_0
    invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;

    move-result-object v7

    .line 732
    .local v7, w:Ljava/lang/Thread;
    const/4 v6, -0x1

    .line 733
    .local v6, spins:I
    const/4 v5, 0x0

    .line 736
    .local v5, randomYields:Lorg/jboss/netty/util/internal/ThreadLocalRandom;
    :cond_0
    :goto_1
    iget-object v0, p1, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->item:Ljava/lang/Object;

    .line 737
    .local v0, item:Ljava/lang/Object;
    if-eq v0, p3, :cond_2

    .line 739
    invoke-virtual {p1}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->forgetContents()V

    .line 740
    invoke-static {v0}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->cast(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p3

    .line 745
    .end local p3           #e:Ljava/lang/Object;,"TE;"
    :goto_2
    return-object p3

    .line 730
    .end local v0           #item:Ljava/lang/Object;
    .end local v1           #lastTime:J
    .end local v5           #randomYields:Lorg/jboss/netty/util/internal/ThreadLocalRandom;
    .end local v6           #spins:I
    .end local v7           #w:Ljava/lang/Thread;
    .restart local p3       #e:Ljava/lang/Object;,"TE;"
    :cond_1
    const-wide/16 v1, 0x0

    goto :goto_0

    .line 742
    .restart local v0       #item:Ljava/lang/Object;
    .restart local v1       #lastTime:J
    .restart local v5       #randomYields:Lorg/jboss/netty/util/internal/ThreadLocalRandom;
    .restart local v6       #spins:I
    .restart local v7       #w:Ljava/lang/Thread;
    :cond_2
    invoke-virtual {v7}, Ljava/lang/Thread;->isInterrupted()Z

    move-result v8

    if-nez v8, :cond_3

    if-eqz p4, :cond_4

    const-wide/16 v8, 0x0

    cmp-long v8, p5, v8

    if-gtz v8, :cond_4

    :cond_3
    invoke-virtual {p1, p3, p1}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->casItem(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v8

    if-eqz v8, :cond_4

    .line 744
    invoke-virtual {p0, p2, p1}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->unsplice(Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;)V

    goto :goto_2

    .line 748
    :cond_4
    if-gez v6, :cond_5

    .line 749
    iget-boolean v8, p1, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->isData:Z

    invoke-static {p2, v8}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->spinsFor(Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;Z)I

    move-result v6

    if-lez v6, :cond_0

    .line 750
    invoke-static {}, Lorg/jboss/netty/util/internal/ThreadLocalRandom;->current()Lorg/jboss/netty/util/internal/ThreadLocalRandom;

    move-result-object v5

    goto :goto_1

    .line 753
    :cond_5
    if-lez v6, :cond_6

    .line 754
    add-int/lit8 v6, v6, -0x1

    .line 755
    const/16 v8, 0x40

    invoke-virtual {v5, v8}, Lorg/jboss/netty/util/internal/ThreadLocalRandom;->nextInt(I)I

    move-result v8

    if-nez v8, :cond_0

    .line 756
    invoke-static {}, Ljava/lang/Thread;->yield()V

    goto :goto_1

    .line 759
    :cond_6
    iget-object v8, p1, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->waiter:Ljava/lang/Thread;

    if-nez v8, :cond_7

    .line 760
    iput-object v7, p1, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->waiter:Ljava/lang/Thread;

    goto :goto_1

    .line 762
    :cond_7
    if-eqz p4, :cond_9

    .line 763
    invoke-static {}, Ljava/lang/System;->nanoTime()J

    move-result-wide v3

    .line 764
    .local v3, now:J
    sub-long v8, v3, v1

    sub-long/2addr p5, v8

    const-wide/16 v8, 0x0

    cmp-long v8, p5, v8

    if-lez v8, :cond_8

    .line 765
    invoke-static/range {p5 .. p6}, Ljava/util/concurrent/locks/LockSupport;->parkNanos(J)V

    .line 767
    :cond_8
    move-wide v1, v3

    .line 768
    goto :goto_1

    .line 770
    .end local v3           #now:J
    :cond_9
    invoke-static {}, Ljava/util/concurrent/locks/LockSupport;->park()V

    goto :goto_1
.end method

.method private casHead(Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;)Z
    .locals 1
    .parameter "cmp"
    .parameter "val"

    .prologue
    .line 575
    .local p0, this:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;,"Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue<TE;>;"
    invoke-static {}, Lorg/jboss/netty/util/internal/AtomicFieldUpdaterUtil;->isAvailable()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 576
    sget-object v0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->headUpdater:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

    invoke-virtual {v0, p0, p1, p2}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v0

    .line 583
    :goto_0
    return v0

    .line 578
    :cond_0
    monitor-enter p0

    .line 579
    :try_start_0
    iget-object v0, p0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->head:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    if-ne v0, p1, :cond_1

    .line 580
    iput-object p2, p0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->head:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    .line 581
    const/4 v0, 0x1

    monitor-exit p0

    goto :goto_0

    .line 585
    :catchall_0
    move-exception v0

    monitor-exit p0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0

    .line 583
    :cond_1
    const/4 v0, 0x0

    :try_start_1
    monitor-exit p0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0
.end method

.method private casSweepVotes(II)Z
    .locals 1
    .parameter "cmp"
    .parameter "val"

    .prologue
    .line 590
    .local p0, this:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;,"Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue<TE;>;"
    invoke-static {}, Lorg/jboss/netty/util/internal/AtomicFieldUpdaterUtil;->isAvailable()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 591
    sget-object v0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->sweepVotesUpdater:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;

    invoke-virtual {v0, p0, p1, p2}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->compareAndSet(Ljava/lang/Object;II)Z

    move-result v0

    .line 598
    :goto_0
    return v0

    .line 593
    :cond_0
    monitor-enter p0

    .line 594
    :try_start_0
    iget v0, p0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->sweepVotes:I

    if-ne v0, p1, :cond_1

    .line 595
    iput p2, p0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->sweepVotes:I

    .line 596
    const/4 v0, 0x1

    monitor-exit p0

    goto :goto_0

    .line 600
    :catchall_0
    move-exception v0

    monitor-exit p0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0

    .line 598
    :cond_1
    const/4 v0, 0x0

    :try_start_1
    monitor-exit p0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0
.end method

.method private casTail(Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;)Z
    .locals 1
    .parameter "cmp"
    .parameter "val"

    .prologue
    .line 560
    .local p0, this:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;,"Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue<TE;>;"
    invoke-static {}, Lorg/jboss/netty/util/internal/AtomicFieldUpdaterUtil;->isAvailable()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 561
    sget-object v0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->tailUpdater:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

    invoke-virtual {v0, p0, p1, p2}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v0

    .line 568
    :goto_0
    return v0

    .line 563
    :cond_0
    monitor-enter p0

    .line 564
    :try_start_0
    iget-object v0, p0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->tail:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    if-ne v0, p1, :cond_1

    .line 565
    iput-object p2, p0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->tail:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    .line 566
    const/4 v0, 0x1

    monitor-exit p0

    goto :goto_0

    .line 570
    :catchall_0
    move-exception v0

    monitor-exit p0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0

    .line 568
    :cond_1
    const/4 v0, 0x0

    :try_start_1
    monitor-exit p0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0
.end method

.method static cast(Ljava/lang/Object;)Ljava/lang/Object;
    .locals 0
    .parameter "item"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<E:",
            "Ljava/lang/Object;",
            ">(",
            "Ljava/lang/Object;",
            ")TE;"
        }
    .end annotation

    .prologue
    .line 615
    return-object p0
.end method

.method private countOfMode(Z)I
    .locals 4
    .parameter "data"

    .prologue
    .line 843
    .local p0, this:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;,"Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue<TE;>;"
    const/4 v0, 0x0

    .line 844
    .local v0, count:I
    iget-object v2, p0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->head:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    .local v2, p:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    :goto_0
    if-eqz v2, :cond_1

    .line 845
    invoke-virtual {v2}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->isMatched()Z

    move-result v3

    if-nez v3, :cond_2

    .line 846
    iget-boolean v3, v2, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->isData:Z

    if-eq v3, p1, :cond_0

    .line 847
    const/4 v3, 0x0

    .line 861
    :goto_1
    return v3

    .line 849
    :cond_0
    add-int/lit8 v0, v0, 0x1

    const v3, 0x7fffffff

    if-ne v0, v3, :cond_2

    :cond_1
    move v3, v0

    .line 861
    goto :goto_1

    .line 853
    :cond_2
    iget-object v1, v2, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->next:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    .line 854
    .local v1, n:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    if-eq v1, v2, :cond_3

    .line 855
    move-object v2, v1

    goto :goto_0

    .line 857
    :cond_3
    const/4 v0, 0x0

    .line 858
    iget-object v2, p0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->head:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    goto :goto_0
.end method

.method private findAndRemove(Ljava/lang/Object;)Z
    .locals 4
    .parameter "e"

    .prologue
    .line 1003
    .local p0, this:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;,"Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue<TE;>;"
    if-eqz p1, :cond_2

    .line 1004
    const/4 v2, 0x0

    .local v2, pred:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    iget-object v1, p0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->head:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    .local v1, p:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    :cond_0
    :goto_0
    if-eqz v1, :cond_2

    .line 1005
    iget-object v0, v1, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->item:Ljava/lang/Object;

    .line 1006
    .local v0, item:Ljava/lang/Object;
    iget-boolean v3, v1, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->isData:Z

    if-eqz v3, :cond_1

    .line 1007
    if-eqz v0, :cond_3

    if-eq v0, v1, :cond_3

    invoke-virtual {p1, v0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_3

    invoke-virtual {v1}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->tryMatchData()Z

    move-result v3

    if-eqz v3, :cond_3

    .line 1009
    invoke-virtual {p0, v2, v1}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->unsplice(Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;)V

    .line 1010
    const/4 v3, 0x1

    .line 1023
    .end local v0           #item:Ljava/lang/Object;
    .end local v1           #p:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    .end local v2           #pred:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    :goto_1
    return v3

    .line 1013
    .restart local v0       #item:Ljava/lang/Object;
    .restart local v1       #p:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    .restart local v2       #pred:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    :cond_1
    if-nez v0, :cond_3

    .line 1023
    .end local v0           #item:Ljava/lang/Object;
    .end local v1           #p:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    .end local v2           #pred:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    :cond_2
    const/4 v3, 0x0

    goto :goto_1

    .line 1016
    .restart local v0       #item:Ljava/lang/Object;
    .restart local v1       #p:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    .restart local v2       #pred:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    :cond_3
    move-object v2, v1

    .line 1017
    iget-object v1, v1, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->next:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    if-ne v1, v2, :cond_0

    .line 1018
    const/4 v2, 0x0

    .line 1019
    iget-object v1, p0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->head:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    goto :goto_0
.end method

.method private firstDataItem()Ljava/lang/Object;
    .locals 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()TE;"
        }
    .end annotation

    .prologue
    .local p0, this:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;,"Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue<TE;>;"
    const/4 v2, 0x0

    .line 824
    iget-object v1, p0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->head:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    .local v1, p:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    :goto_0
    if-eqz v1, :cond_0

    .line 825
    iget-object v0, v1, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->item:Ljava/lang/Object;

    .line 826
    .local v0, item:Ljava/lang/Object;
    iget-boolean v3, v1, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->isData:Z

    if-eqz v3, :cond_1

    .line 827
    if-eqz v0, :cond_2

    if-eq v0, v1, :cond_2

    .line 828
    invoke-static {v0}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->cast(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    .line 835
    .end local v0           #item:Ljava/lang/Object;
    :cond_0
    return-object v2

    .line 831
    .restart local v0       #item:Ljava/lang/Object;
    :cond_1
    if-eqz v0, :cond_0

    .line 824
    :cond_2
    invoke-virtual {p0, v1}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->succ(Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;)Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    move-result-object v1

    goto :goto_0
.end method

.method private firstOfMode(Z)Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    .locals 3
    .parameter "isData"

    .prologue
    .local p0, this:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;,"Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue<TE;>;"
    const/4 v1, 0x0

    .line 811
    iget-object v0, p0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->head:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    .local v0, p:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    :goto_0
    if-eqz v0, :cond_2

    .line 812
    invoke-virtual {v0}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->isMatched()Z

    move-result v2

    if-nez v2, :cond_1

    .line 813
    iget-boolean v2, v0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->isData:Z

    if-ne v2, p1, :cond_0

    .line 816
    .end local v0           #p:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    :goto_1
    return-object v0

    .restart local v0       #p:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    :cond_0
    move-object v0, v1

    .line 813
    goto :goto_1

    .line 811
    :cond_1
    invoke-virtual {p0, v0}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->succ(Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;)Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    move-result-object v0

    goto :goto_0

    :cond_2
    move-object v0, v1

    .line 816
    goto :goto_1
.end method

.method private readObject(Ljava/io/ObjectInputStream;)V
    .locals 1
    .parameter "s"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;,
            Ljava/lang/ClassNotFoundException;
        }
    .end annotation

    .prologue
    .line 1330
    .local p0, this:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;,"Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue<TE;>;"
    invoke-virtual {p1}, Ljava/io/ObjectInputStream;->defaultReadObject()V

    .line 1332
    :goto_0
    invoke-virtual {p1}, Ljava/io/ObjectInputStream;->readObject()Ljava/lang/Object;

    move-result-object v0

    .line 1333
    .local v0, item:Ljava/lang/Object;,"TE;"
    if-nez v0, :cond_0

    .line 1339
    return-void

    .line 1336
    :cond_0
    invoke-virtual {p0, v0}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->offer(Ljava/lang/Object;)Z

    goto :goto_0
.end method

.method private static spinsFor(Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;Z)I
    .locals 1
    .parameter "pred"
    .parameter "haveData"

    .prologue
    .line 780
    sget-boolean v0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->MP:Z

    if-eqz v0, :cond_2

    if-eqz p0, :cond_2

    .line 781
    iget-boolean v0, p0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->isData:Z

    if-eq v0, p1, :cond_0

    .line 782
    const/16 v0, 0xc0

    .line 791
    :goto_0
    return v0

    .line 784
    :cond_0
    invoke-virtual {p0}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->isMatched()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 785
    const/16 v0, 0x80

    goto :goto_0

    .line 787
    :cond_1
    iget-object v0, p0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->waiter:Ljava/lang/Thread;

    if-nez v0, :cond_2

    .line 788
    const/16 v0, 0x40

    goto :goto_0

    .line 791
    :cond_2
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private sweep()V
    .locals 4

    .prologue
    .line 984
    .local p0, this:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;,"Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue<TE;>;"
    iget-object v1, p0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->head:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    .local v1, p:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    :goto_0
    if-eqz v1, :cond_1

    iget-object v2, v1, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->next:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    .local v2, s:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    if-eqz v2, :cond_1

    .line 985
    invoke-virtual {v2}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->isMatched()Z

    move-result v3

    if-nez v3, :cond_0

    .line 987
    move-object v1, v2

    goto :goto_0

    .line 988
    :cond_0
    iget-object v0, v2, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->next:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    .local v0, n:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    if-nez v0, :cond_2

    .line 997
    .end local v0           #n:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    .end local v2           #s:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    :cond_1
    return-void

    .line 990
    .restart local v0       #n:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    .restart local v2       #s:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    :cond_2
    if-ne v2, v0, :cond_3

    .line 992
    iget-object v1, p0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->head:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    goto :goto_0

    .line 994
    :cond_3
    invoke-virtual {v1, v2, v0}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->casNext(Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;)Z

    goto :goto_0
.end method

.method private tryAppend(Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;Z)Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    .locals 6
    .parameter "s"
    .parameter "haveData"

    .prologue
    .local p0, this:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;,"Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue<TE;>;"
    const/4 v4, 0x0

    .line 689
    iget-object v2, p0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->tail:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    .local v2, t:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    move-object v1, v2

    .line 691
    .local v1, p:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    :cond_0
    :goto_0
    if-nez v1, :cond_2

    iget-object v1, p0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->head:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    if-nez v1, :cond_2

    .line 692
    invoke-direct {p0, v4, p1}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->casHead(Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;)Z

    move-result v5

    if-eqz v5, :cond_0

    move-object v4, p1

    .line 712
    :cond_1
    :goto_1
    return-object v4

    .line 696
    :cond_2
    invoke-virtual {v1, p2}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->cannotPrecede(Z)Z

    move-result v5

    if-nez v5, :cond_1

    .line 698
    iget-object v0, v1, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->next:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    .local v0, n:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    if-eqz v0, :cond_5

    .line 699
    if-eq v1, v2, :cond_3

    iget-object v3, p0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->tail:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    .local v3, u:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    if-eq v2, v3, :cond_3

    move-object v2, v3

    move-object v1, v3

    .end local v3           #u:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    :goto_2
    goto :goto_0

    :cond_3
    if-eq v1, v0, :cond_4

    move-object v1, v0

    goto :goto_2

    :cond_4
    move-object v1, v4

    goto :goto_2

    .line 701
    :cond_5
    invoke-virtual {v1, v4, p1}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->casNext(Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;)Z

    move-result v5

    if-nez v5, :cond_6

    .line 702
    iget-object v1, v1, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->next:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    goto :goto_0

    .line 704
    :cond_6
    if-eq v1, v2, :cond_9

    .line 708
    :cond_7
    iget-object v4, p0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->tail:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    if-ne v4, v2, :cond_8

    invoke-direct {p0, v2, p1}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->casTail(Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;)Z

    move-result v4

    if-nez v4, :cond_9

    :cond_8
    iget-object v2, p0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->tail:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    if-eqz v2, :cond_9

    iget-object p1, v2, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->next:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    if-eqz p1, :cond_9

    iget-object p1, p1, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->next:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    if-eqz p1, :cond_9

    if-ne p1, v2, :cond_7

    :cond_9
    move-object v4, v1

    .line 712
    goto :goto_1
.end method

.method private writeObject(Ljava/io/ObjectOutputStream;)V
    .locals 3
    .parameter "s"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 1314
    .local p0, this:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;,"Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue<TE;>;"
    invoke-virtual {p1}, Ljava/io/ObjectOutputStream;->defaultWriteObject()V

    .line 1315
    invoke-virtual {p0}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->iterator()Ljava/util/Iterator;

    move-result-object v1

    .local v1, i$:Ljava/util/Iterator;
    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    .line 1316
    .local v0, e:Ljava/lang/Object;,"TE;"
    invoke-virtual {p1, v0}, Ljava/io/ObjectOutputStream;->writeObject(Ljava/lang/Object;)V

    goto :goto_0

    .line 1319
    .end local v0           #e:Ljava/lang/Object;,"TE;"
    :cond_0
    const/4 v2, 0x0

    invoke-virtual {p1, v2}, Ljava/io/ObjectOutputStream;->writeObject(Ljava/lang/Object;)V

    .line 1320
    return-void
.end method

.method private xfer(Ljava/lang/Object;ZIJ)Ljava/lang/Object;
    .locals 14
    .parameter
    .parameter "haveData"
    .parameter "how"
    .parameter "nanos"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(TE;ZIJ)TE;"
        }
    .end annotation

    .prologue
    .line 629
    .local p0, this:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;,"Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue<TE;>;"
    .local p1, e:Ljava/lang/Object;,"TE;"
    if-eqz p2, :cond_0

    if-nez p1, :cond_0

    .line 630
    new-instance v1, Ljava/lang/NullPointerException;

    invoke-direct {v1}, Ljava/lang/NullPointerException;-><init>()V

    throw v1

    .line 632
    :cond_0
    const/4 v2, 0x0

    .line 636
    .local v2, s:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    :cond_1
    iget-object v8, p0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->head:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    .local v8, h:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    move-object v12, v8

    .local v12, p:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    :goto_0
    if-eqz v12, :cond_2

    .line 637
    iget-boolean v9, v12, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->isData:Z

    .line 638
    .local v9, isData:Z
    iget-object v10, v12, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->item:Ljava/lang/Object;

    .line 639
    .local v10, item:Ljava/lang/Object;
    if-eq v10, v12, :cond_b

    if-eqz v10, :cond_5

    const/4 v1, 0x1

    :goto_1
    if-ne v1, v9, :cond_b

    .line 640
    move/from16 v0, p2

    if-ne v9, v0, :cond_6

    .line 663
    .end local v9           #isData:Z
    .end local v10           #item:Ljava/lang/Object;
    :cond_2
    if-eqz p3, :cond_4

    .line 664
    if-nez v2, :cond_3

    .line 665
    new-instance v2, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    .end local v2           #s:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    move/from16 v0, p2

    invoke-direct {v2, p1, v0}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;-><init>(Ljava/lang/Object;Z)V

    .line 667
    .restart local v2       #s:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    :cond_3
    move/from16 v0, p2

    invoke-direct {p0, v2, v0}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->tryAppend(Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;Z)Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    move-result-object v3

    .line 668
    .local v3, pred:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    if-eqz v3, :cond_1

    .line 671
    const/4 v1, 0x1

    move/from16 v0, p3

    if-eq v0, v1, :cond_4

    .line 672
    const/4 v1, 0x3

    move/from16 v0, p3

    if-ne v0, v1, :cond_d

    const/4 v5, 0x1

    :goto_2
    move-object v1, p0

    move-object v4, p1

    move-wide/from16 v6, p4

    invoke-direct/range {v1 .. v7}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->awaitMatch(Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;Ljava/lang/Object;ZJ)Ljava/lang/Object;

    move-result-object p1

    .line 675
    .end local v3           #pred:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    .end local p1           #e:Ljava/lang/Object;,"TE;"
    :cond_4
    :goto_3
    return-object p1

    .line 639
    .restart local v9       #isData:Z
    .restart local v10       #item:Ljava/lang/Object;
    .restart local p1       #e:Ljava/lang/Object;,"TE;"
    :cond_5
    const/4 v1, 0x0

    goto :goto_1

    .line 643
    :cond_6
    invoke-virtual {v12, v10, p1}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->casItem(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_b

    .line 644
    move-object v13, v12

    .local v13, q:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    :cond_7
    if-eq v13, v8, :cond_9

    .line 645
    iget-object v11, v13, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->next:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    .line 646
    .local v11, n:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    iget-object v1, p0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->head:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    if-ne v1, v8, :cond_a

    if-nez v11, :cond_8

    move-object v11, v13

    .end local v11           #n:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    :cond_8
    invoke-direct {p0, v8, v11}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->casHead(Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;)Z

    move-result v1

    if-eqz v1, :cond_a

    .line 647
    invoke-virtual {v8}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->forgetNext()V

    .line 655
    :cond_9
    :goto_4
    iget-object v1, v12, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->waiter:Ljava/lang/Thread;

    invoke-static {v1}, Ljava/util/concurrent/locks/LockSupport;->unpark(Ljava/lang/Thread;)V

    .line 656
    invoke-static {v10}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->cast(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    goto :goto_3

    .line 650
    :cond_a
    iget-object v8, p0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->head:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    if-eqz v8, :cond_9

    iget-object v13, v8, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->next:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    if-eqz v13, :cond_9

    invoke-virtual {v13}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->isMatched()Z

    move-result v1

    if-nez v1, :cond_7

    goto :goto_4

    .line 659
    .end local v13           #q:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    :cond_b
    iget-object v11, v12, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->next:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    .line 660
    .restart local v11       #n:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    if-eq v12, v11, :cond_c

    move-object v12, v11

    .line 661
    :goto_5
    goto :goto_0

    .line 660
    :cond_c
    iget-object v8, p0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->head:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    move-object v12, v8

    goto :goto_5

    .line 672
    .end local v9           #isData:Z
    .end local v10           #item:Ljava/lang/Object;
    .end local v11           #n:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    .restart local v3       #pred:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    :cond_d
    const/4 v5, 0x0

    goto :goto_2
.end method


# virtual methods
.method public add(Ljava/lang/Object;)Z
    .locals 6
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(TE;)Z"
        }
    .end annotation

    .prologue
    .local p0, this:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;,"Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue<TE;>;"
    .local p1, e:Ljava/lang/Object;,"TE;"
    const/4 v2, 0x1

    .line 1094
    const-wide/16 v4, 0x0

    move-object v0, p0

    move-object v1, p1

    move v3, v2

    invoke-direct/range {v0 .. v5}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->xfer(Ljava/lang/Object;ZIJ)Ljava/lang/Object;

    .line 1095
    return v2
.end method

.method public drainTo(Ljava/util/Collection;)I
    .locals 3
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Collection",
            "<-TE;>;)I"
        }
    .end annotation

    .prologue
    .line 1181
    .local p0, this:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;,"Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue<TE;>;"
    .local p1, c:Ljava/util/Collection;,"Ljava/util/Collection<-TE;>;"
    if-nez p1, :cond_0

    .line 1182
    new-instance v2, Ljava/lang/NullPointerException;

    invoke-direct {v2}, Ljava/lang/NullPointerException;-><init>()V

    throw v2

    .line 1184
    :cond_0
    if-ne p1, p0, :cond_1

    .line 1185
    new-instance v2, Ljava/lang/IllegalArgumentException;

    invoke-direct {v2}, Ljava/lang/IllegalArgumentException;-><init>()V

    throw v2

    .line 1187
    :cond_1
    const/4 v1, 0x0

    .line 1189
    .local v1, n:I
    :goto_0
    invoke-virtual {p0}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->poll()Ljava/lang/Object;

    move-result-object v0

    .local v0, e:Ljava/lang/Object;,"TE;"
    if-eqz v0, :cond_2

    .line 1190
    invoke-interface {p1, v0}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z

    .line 1191
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 1193
    :cond_2
    return v1
.end method

.method public drainTo(Ljava/util/Collection;I)I
    .locals 3
    .parameter
    .parameter "maxElements"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Collection",
            "<-TE;>;I)I"
        }
    .end annotation

    .prologue
    .line 1201
    .local p0, this:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;,"Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue<TE;>;"
    .local p1, c:Ljava/util/Collection;,"Ljava/util/Collection<-TE;>;"
    if-nez p1, :cond_0

    .line 1202
    new-instance v2, Ljava/lang/NullPointerException;

    invoke-direct {v2}, Ljava/lang/NullPointerException;-><init>()V

    throw v2

    .line 1204
    :cond_0
    if-ne p1, p0, :cond_1

    .line 1205
    new-instance v2, Ljava/lang/IllegalArgumentException;

    invoke-direct {v2}, Ljava/lang/IllegalArgumentException;-><init>()V

    throw v2

    .line 1207
    :cond_1
    const/4 v1, 0x0

    .line 1209
    .local v1, n:I
    :goto_0
    if-ge v1, p2, :cond_2

    invoke-virtual {p0}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->poll()Ljava/lang/Object;

    move-result-object v0

    .local v0, e:Ljava/lang/Object;,"TE;"
    if-eqz v0, :cond_2

    .line 1210
    invoke-interface {p1, v0}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z

    .line 1211
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 1213
    .end local v0           #e:Ljava/lang/Object;,"TE;"
    :cond_2
    return v1
.end method

.method public getWaitingConsumerCount()I
    .locals 1

    .prologue
    .line 1275
    .local p0, this:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;,"Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue<TE;>;"
    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->countOfMode(Z)I

    move-result v0

    return v0
.end method

.method public hasWaitingConsumer()Z
    .locals 2

    .prologue
    .local p0, this:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;,"Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue<TE;>;"
    const/4 v0, 0x0

    .line 1254
    invoke-direct {p0, v0}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->firstOfMode(Z)Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    move-result-object v1

    if-eqz v1, :cond_0

    const/4 v0, 0x1

    :cond_0
    return v0
.end method

.method public isEmpty()Z
    .locals 3

    .prologue
    .local p0, this:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;,"Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue<TE;>;"
    const/4 v1, 0x1

    .line 1245
    iget-object v0, p0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->head:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    .local v0, p:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    :goto_0
    if-eqz v0, :cond_0

    .line 1246
    invoke-virtual {v0}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->isMatched()Z

    move-result v2

    if-nez v2, :cond_2

    .line 1247
    iget-boolean v2, v0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->isData:Z

    if-nez v2, :cond_1

    .line 1250
    :cond_0
    :goto_1
    return v1

    .line 1247
    :cond_1
    const/4 v1, 0x0

    goto :goto_1

    .line 1245
    :cond_2
    invoke-virtual {p0, v0}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->succ(Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;)Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    move-result-object v0

    goto :goto_0
.end method

.method public iterator()Ljava/util/Iterator;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/Iterator",
            "<TE;>;"
        }
    .end annotation

    .prologue
    .line 1231
    .local p0, this:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;,"Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue<TE;>;"
    new-instance v0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Itr;

    invoke-direct {v0, p0}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Itr;-><init>(Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;)V

    return-object v0
.end method

.method public offer(Ljava/lang/Object;)Z
    .locals 6
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(TE;)Z"
        }
    .end annotation

    .prologue
    .local p0, this:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;,"Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue<TE;>;"
    .local p1, e:Ljava/lang/Object;,"TE;"
    const/4 v2, 0x1

    .line 1080
    const-wide/16 v4, 0x0

    move-object v0, p0

    move-object v1, p1

    move v3, v2

    invoke-direct/range {v0 .. v5}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->xfer(Ljava/lang/Object;ZIJ)Ljava/lang/Object;

    .line 1081
    return v2
.end method

.method public offer(Ljava/lang/Object;JLjava/util/concurrent/TimeUnit;)Z
    .locals 6
    .parameter
    .parameter "timeout"
    .parameter "unit"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(TE;J",
            "Ljava/util/concurrent/TimeUnit;",
            ")Z"
        }
    .end annotation

    .prologue
    .local p0, this:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;,"Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue<TE;>;"
    .local p1, e:Ljava/lang/Object;,"TE;"
    const/4 v2, 0x1

    .line 1067
    const-wide/16 v4, 0x0

    move-object v0, p0

    move-object v1, p1

    move v3, v2

    invoke-direct/range {v0 .. v5}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->xfer(Ljava/lang/Object;ZIJ)Ljava/lang/Object;

    .line 1068
    return v2
.end method

.method public peek()Ljava/lang/Object;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()TE;"
        }
    .end annotation

    .prologue
    .line 1235
    .local p0, this:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;,"Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue<TE;>;"
    invoke-direct {p0}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->firstDataItem()Ljava/lang/Object;

    move-result-object v0

    return-object v0
.end method

.method public poll()Ljava/lang/Object;
    .locals 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()TE;"
        }
    .end annotation

    .prologue
    .local p0, this:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;,"Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue<TE;>;"
    const/4 v2, 0x0

    .line 1173
    const/4 v1, 0x0

    const-wide/16 v4, 0x0

    move-object v0, p0

    move v3, v2

    invoke-direct/range {v0 .. v5}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->xfer(Ljava/lang/Object;ZIJ)Ljava/lang/Object;

    move-result-object v0

    return-object v0
.end method

.method public poll(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;
    .locals 7
    .parameter "timeout"
    .parameter "unit"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(J",
            "Ljava/util/concurrent/TimeUnit;",
            ")TE;"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/InterruptedException;
        }
    .end annotation

    .prologue
    .line 1165
    .local p0, this:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;,"Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue<TE;>;"
    const/4 v1, 0x0

    const/4 v2, 0x0

    const/4 v3, 0x3

    invoke-virtual {p3, p1, p2}, Ljava/util/concurrent/TimeUnit;->toNanos(J)J

    move-result-wide v4

    move-object v0, p0

    invoke-direct/range {v0 .. v5}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->xfer(Ljava/lang/Object;ZIJ)Ljava/lang/Object;

    move-result-object v6

    .line 1166
    .local v6, e:Ljava/lang/Object;,"TE;"
    if-nez v6, :cond_0

    invoke-static {}, Ljava/lang/Thread;->interrupted()Z

    move-result v0

    if-nez v0, :cond_1

    .line 1167
    :cond_0
    return-object v6

    .line 1169
    :cond_1
    new-instance v0, Ljava/lang/InterruptedException;

    invoke-direct {v0}, Ljava/lang/InterruptedException;-><init>()V

    throw v0
.end method

.method public put(Ljava/lang/Object;)V
    .locals 6
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(TE;)V"
        }
    .end annotation

    .prologue
    .local p0, this:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;,"Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue<TE;>;"
    .local p1, e:Ljava/lang/Object;,"TE;"
    const/4 v2, 0x1

    .line 1054
    const-wide/16 v4, 0x0

    move-object v0, p0

    move-object v1, p1

    move v3, v2

    invoke-direct/range {v0 .. v5}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->xfer(Ljava/lang/Object;ZIJ)Ljava/lang/Object;

    .line 1055
    return-void
.end method

.method public remainingCapacity()I
    .locals 1

    .prologue
    .line 1302
    .local p0, this:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;,"Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue<TE;>;"
    const v0, 0x7fffffff

    return v0
.end method

.method public remove(Ljava/lang/Object;)Z
    .locals 1
    .parameter "o"

    .prologue
    .line 1291
    .local p0, this:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;,"Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue<TE;>;"
    invoke-direct {p0, p1}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->findAndRemove(Ljava/lang/Object;)Z

    move-result v0

    return v0
.end method

.method public size()I
    .locals 1

    .prologue
    .line 1271
    .local p0, this:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;,"Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue<TE;>;"
    const/4 v0, 0x1

    invoke-direct {p0, v0}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->countOfMode(Z)I

    move-result v0

    return v0
.end method

.method final succ(Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;)Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    .locals 1
    .parameter "p"

    .prologue
    .line 802
    .local p0, this:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;,"Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue<TE;>;"
    iget-object v0, p1, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->next:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    .line 803
    .local v0, next:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    if-ne p1, v0, :cond_0

    iget-object v0, p0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->head:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    .end local v0           #next:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    :cond_0
    return-object v0
.end method

.method public take()Ljava/lang/Object;
    .locals 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()TE;"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/InterruptedException;
        }
    .end annotation

    .prologue
    .line 1156
    .local p0, this:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;,"Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue<TE;>;"
    const/4 v1, 0x0

    const/4 v2, 0x0

    const/4 v3, 0x2

    const-wide/16 v4, 0x0

    move-object v0, p0

    invoke-direct/range {v0 .. v5}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->xfer(Ljava/lang/Object;ZIJ)Ljava/lang/Object;

    move-result-object v6

    .line 1157
    .local v6, e:Ljava/lang/Object;,"TE;"
    if-eqz v6, :cond_0

    .line 1158
    return-object v6

    .line 1160
    :cond_0
    invoke-static {}, Ljava/lang/Thread;->interrupted()Z

    .line 1161
    new-instance v0, Ljava/lang/InterruptedException;

    invoke-direct {v0}, Ljava/lang/InterruptedException;-><init>()V

    throw v0
.end method

.method public transfer(Ljava/lang/Object;)V
    .locals 6
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(TE;)V"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/InterruptedException;
        }
    .end annotation

    .prologue
    .line 1124
    .local p0, this:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;,"Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue<TE;>;"
    .local p1, e:Ljava/lang/Object;,"TE;"
    const/4 v2, 0x1

    const/4 v3, 0x2

    const-wide/16 v4, 0x0

    move-object v0, p0

    move-object v1, p1

    invoke-direct/range {v0 .. v5}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->xfer(Ljava/lang/Object;ZIJ)Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 1125
    invoke-static {}, Ljava/lang/Thread;->interrupted()Z

    .line 1126
    new-instance v0, Ljava/lang/InterruptedException;

    invoke-direct {v0}, Ljava/lang/InterruptedException;-><init>()V

    throw v0

    .line 1128
    :cond_0
    return-void
.end method

.method public tryTransfer(Ljava/lang/Object;)Z
    .locals 6
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(TE;)Z"
        }
    .end annotation

    .prologue
    .local p0, this:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;,"Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue<TE;>;"
    .local p1, e:Ljava/lang/Object;,"TE;"
    const/4 v2, 0x1

    const/4 v3, 0x0

    .line 1109
    const-wide/16 v4, 0x0

    move-object v0, p0

    move-object v1, p1

    invoke-direct/range {v0 .. v5}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->xfer(Ljava/lang/Object;ZIJ)Ljava/lang/Object;

    move-result-object v0

    if-nez v0, :cond_0

    :goto_0
    return v2

    :cond_0
    move v2, v3

    goto :goto_0
.end method

.method public tryTransfer(Ljava/lang/Object;JLjava/util/concurrent/TimeUnit;)Z
    .locals 6
    .parameter
    .parameter "timeout"
    .parameter "unit"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(TE;J",
            "Ljava/util/concurrent/TimeUnit;",
            ")Z"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/InterruptedException;
        }
    .end annotation

    .prologue
    .local p0, this:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;,"Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue<TE;>;"
    .local p1, e:Ljava/lang/Object;,"TE;"
    const/4 v2, 0x1

    .line 1146
    const/4 v3, 0x3

    invoke-virtual {p4, p2, p3}, Ljava/util/concurrent/TimeUnit;->toNanos(J)J

    move-result-wide v4

    move-object v0, p0

    move-object v1, p1

    invoke-direct/range {v0 .. v5}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->xfer(Ljava/lang/Object;ZIJ)Ljava/lang/Object;

    move-result-object v0

    if-nez v0, :cond_0

    .line 1150
    :goto_0
    return v2

    .line 1149
    :cond_0
    invoke-static {}, Ljava/lang/Thread;->interrupted()Z

    move-result v0

    if-nez v0, :cond_1

    .line 1150
    const/4 v2, 0x0

    goto :goto_0

    .line 1152
    :cond_1
    new-instance v0, Ljava/lang/InterruptedException;

    invoke-direct {v0}, Ljava/lang/InterruptedException;-><init>()V

    throw v0
.end method

.method final unsplice(Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;)V
    .locals 5
    .parameter "pred"
    .parameter "s"

    .prologue
    .line 933
    .local p0, this:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;,"Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue<TE;>;"
    invoke-virtual {p2}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->forgetContents()V

    .line 941
    if-eqz p1, :cond_1

    if-eq p1, p2, :cond_1

    iget-object v4, p1, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->next:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    if-ne v4, p2, :cond_1

    .line 942
    iget-object v2, p2, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->next:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    .line 943
    .local v2, n:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    if-eqz v2, :cond_0

    if-eq v2, p2, :cond_1

    invoke-virtual {p1, p2, v2}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->casNext(Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;)Z

    move-result v4

    if-eqz v4, :cond_1

    invoke-virtual {p1}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->isMatched()Z

    move-result v4

    if-eqz v4, :cond_1

    .line 946
    :cond_0
    :goto_0
    iget-object v0, p0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->head:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    .line 947
    .local v0, h:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    if-eq v0, p1, :cond_1

    if-eq v0, p2, :cond_1

    if-nez v0, :cond_2

    .line 977
    .end local v0           #h:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    .end local v2           #n:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    :cond_1
    :goto_1
    return-void

    .line 950
    .restart local v0       #h:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    .restart local v2       #n:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    :cond_2
    invoke-virtual {v0}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->isMatched()Z

    move-result v4

    if-nez v4, :cond_4

    .line 961
    iget-object v4, p1, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->next:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    if-eq v4, p1, :cond_1

    iget-object v4, p2, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->next:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    if-eq v4, p2, :cond_1

    .line 963
    :cond_3
    iget v3, p0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->sweepVotes:I

    .line 964
    .local v3, v:I
    const/16 v4, 0x20

    if-ge v3, v4, :cond_5

    .line 965
    add-int/lit8 v4, v3, 0x1

    invoke-direct {p0, v3, v4}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->casSweepVotes(II)Z

    move-result v4

    if-eqz v4, :cond_3

    goto :goto_1

    .line 953
    .end local v3           #v:I
    :cond_4
    iget-object v1, v0, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->next:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;

    .line 954
    .local v1, hn:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    if-eqz v1, :cond_1

    .line 957
    if-eq v1, v0, :cond_0

    invoke-direct {p0, v0, v1}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->casHead(Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;)Z

    move-result v4

    if-eqz v4, :cond_0

    .line 958
    invoke-virtual {v0}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;->forgetNext()V

    goto :goto_0

    .line 969
    .end local v1           #hn:Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue$Node;
    .restart local v3       #v:I
    :cond_5
    const/4 v4, 0x0

    invoke-direct {p0, v3, v4}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->casSweepVotes(II)Z

    move-result v4

    if-eqz v4, :cond_3

    .line 970
    invoke-direct {p0}, Lorg/jboss/netty/util/internal/LegacyLinkedTransferQueue;->sweep()V

    goto :goto_1
.end method
